From: Keir Fraser Date: Thu, 8 Feb 2007 17:15:38 +0000 (+0000) Subject: Fix a typo in console_steal(). X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15347^2~2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=9e81ed4de392d2785759a552d74b58aa09c0fb4f;p=xen.git Fix a typo in console_steal(). Signed-off-by: Kevin Tian --- diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 01eda8a06d..7eea5b2b4e 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -223,7 +223,7 @@ int console_steal(int handle, void (*fn)(const char *)) if ( (handle == -1) || (handle != sercon_handle) ) return 0; - if ( serial_steal_fn == NULL ) + if ( serial_steal_fn != NULL ) return -EBUSY; serial_steal_fn = fn;